package com.biz.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bean.Unit;
import com.biz.UnitBiz;
import com.service.MapperService;
@Service
@Transactional
public class UnitBizImp implements UnitBiz {
	@Autowired
	private MapperService mapperService;
	
	public MapperService getMapperService() {
		return mapperService;
	}

	public void setMapperService(MapperService mapperService) {
		this.mapperService = mapperService;
	}
	public List<Unit> findAll() {
		
		return mapperService.getUnitMapper().findAll();
	}

}
